#include "ShipSuperShieldProperty.h"

using namespace view;

ShipSuperShieldProperty::ShipSuperShieldProperty(Ship* ship)
{
	this->ship = ship;
}

ShipSuperShieldProperty::~ShipSuperShieldProperty(void)
{
}

int ShipSuperShieldProperty::getProgress(void)
{
	int superShieldProgress = 0;
	if (ship->getSuperShield())
	{
		superShieldProgress = ship->getSuperShield()->isEnabled();
	}
	return superShieldProgress;
}

bool ShipSuperShieldProperty::isDone(void)
{
	bool isSuperShield = false;
	if (ship->getSuperShield())
	{
		isSuperShield = !ship->getSuperShield()->isEnabled();
	}
	return isSuperShield;
}
